package robocup.component.speechacts.coachlanguage;

import java.util.LinkedList;

public class IdList {

  private final LinkedList<String> idList = new LinkedList<String>();

  public LinkedList<String> getIdList() {

    return this.idList;
  }

  public void addId(final String clangVar) {

    this.idList.add(clangVar);
  }

  @Override
  public String toString() {

    final StringBuffer buf = new StringBuffer();

    for (final String str : this.idList) {
      buf.append(" " + str);
    }
    if (this.idList.size() > 1) {
      buf.insert(1, "(");
      buf.append(")");
    }
    return buf.toString();
  }

}
